@mixin bg-common {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
}

@mixin input-common {
  position: absolute;
  box-sizing: border-box;
  display: block;
  width: 70%;
  height: 22px;
  padding: 0 .2em;
  line-height: 22px;
  font-size: 12px;
  text-align: left;
  border: 1px solid #eee;
  overflow: hidden;
}

.preview {
  .size-jiashu-170X235 {
    .el-dialog--small {
      width: 700px;
    }
    .preview_comtent {
      width: 652px;
      height: 450px;
      margin: 0 auto;
    }
    .style_type_200 {
      &.even {
        background: url("http://image2.artup.com/static/pc/jiashu/shuhe_bg2.png") no-repeat;
        background-size: 100% 100%;
        .img_style_200_1 {
          width: 240px;
          height: 166px;
          margin: 70px auto 0;
          &:before {
            content: '';
            display: block;
            width: 240px;
            height: 166px;
            background: url("http://image2.artup.com/static/pc/jiashu/page_first_24.png") no-repeat;
            background-size: 100% 100%;
          }
        }
      }
      &.odd {
        background: url("http://image2.artup.com/static/pc/jiashu/fiarst_page_left.jpg") no-repeat;
        background-size: 100% 100%;
      }
      .page_num {
        display: none;
      }
    }
    .style_type_0 {
      background: url("http://image2.artup.com/static/pc/jiashu/fiarst_page_right.jpg") no-repeat;
      background-size: 100% 100%;
      .img_style_0_1 {
        width: 156px;
        height: 214px;
        @include bg-common;
        margin: 70px auto 0;
      }
      .text_style_0_1 {
        font-size: 30px;
        color: #a89a90;
        display: block;
        margin: 40px auto 0;
      }
      .page_num {
        display: none;
      }
    }
    // 版式1 -------------
    .img_style_1_1 {
      display: block;
      width: 200px;
      height: 300px;
      margin: 50px auto 0;
    }
    .text_style_1_1 {
      bottom: 30px;
      left: 60px;
      @include input-common;
      width: 200px;
      text-align: center;
    }
    // 版式2 -------------
    .img_style_2_1 {
      display: block;
      width: 220px;
      height: 220px;
      margin: 90px auto 0;
    }
    .text_style_2_1 {
      bottom: 30px;
      left: 45px;
      @include input-common;
      text-align: center;
    }
    // 版式3 -------------
    .img_style_3_1, .img_style_3_2 {
      display: block;
      width: 200px;
      height: 160px;
      margin: 40px auto 0;

    }
    .img_style_3_2 {
      margin: 20px auto 0;
    }
    .text_style_3_1 {
      bottom: 30px;
      left: 62px;
      @include input-common;
      width: 200px;
      text-align: center;
    }
    // 版式4 -------------
    .img_style_4_1, .img_style_4_2 {
      display: block;
      width: 170px;
      height: 170px;
      margin: 24px auto 0;
    }
    .img_style_4_2 {
      margin: 20px auto 0;
    }
    .text_style_4_1 {
      bottom: 30px;
      left: 78px;
      @include input-common;
      width: 170px;
      text-align: center;
    }
    // 版式5 -------------
    .img_style_5_1 {
      display: block;
      width: 220px;
      height: 176px;
      margin: 100px auto 0;
    }
    .text_style_5_1 {
      bottom: 30px;
      left: 45px;
      @include input-common;
      text-align: center;
    }
    // 版式6 -------------
    .img_style_6_1 {
      display: block;
      width: 160px;
      height: 195px;
      margin: 130px auto 0;
    }
    .text_style_6_1 {
      bottom: 30px;
      left: 45px;
      @include input-common;
      text-align: center;
      width: 160px;
      left: 82px;
    }
    // 版式7 -------------
    .img_style_7_1 {
      display: block;
      width: 70%;
      height: 310px;
      margin: 60px auto 0;
    }
    .text_style_7_1 {
      bottom: 30px;
      left: 45px;
      @include input-common;
      text-align: center;
    }
    // 版式8 -------------
    .img_style_8_1, .img_style_8_2, .img_style_8_3, .img_style_8_4 {
      position: absolute;
      width: 130px;
      height: 130px;
    }
    .img_style_8_1 {
      top: 60px;
      left: 20px;
    }
    .img_style_8_2 {
      top: 60px;
      right: 20px;
    }
    .img_style_8_3 {
      bottom: 110px;
      left: 20px;
    }
    .img_style_8_4 {
      bottom: 110px;
      right: 20px;
    }
    .text_style_8_1 {
      bottom: 30px;
      left: 45px;
      @include input-common;
      text-align: center;
    }
    // 版式9 -------------
    .img_style_9_1 {
      display: block;
      width: 218px;
      height: 160px;
      margin: 100px auto 0;
    }
    .text_style_9_1 {
      bottom: 46px;
      left: 54px;
      @include input-common;
      width: 218px;
      height: 72px;
      text-align: center;
    }
    // 版式10 -------------
    .img_style_10_1, .img_style_10_2, .img_style_10_3, .img_style_10_4 {
      position: absolute;
      width: 100px;
      height: 150px;
    }
    .img_style_10_1 {
      top: 60px;
      left: 50px;
    }
    .img_style_10_2 {
      top: 60px;
      right: 50px;
    }
    .img_style_10_3 {
      bottom: 70px;
      left: 50px;
    }
    .img_style_10_4 {
      bottom: 70px;
      right: 50px;
    }
    // 版式11 -------------
    .img_style_11_1, .img_style_11_2 {
      display: block;
      width: 150px;
      height: 150px;
      margin: 24px auto 0;
    }
    .img_style_11_2 {
      margin: 60px auto 0;
    }
    .text_style_11_1, .text_style_11_2 {
      top: 190px;
      left: 88px;
      @include input-common;
      width: 150px;
      text-align: center;
    }
    .text_style_11_2 {
      top: auto;
      bottom: 30px;

    }
    // 版式12 -------------
    .img_style_12_1 {
      position: absolute;
      top: 10px;
      left: 11%;
      bottom: 58px;
      width: 178%;
      z-index: 500;
      @include bg-common;
    }
    .even .img_style_12_1 {
      left: -89%;
    }
    .odd .text_style_12_1 {
      display: none;
      text-align: center;
    }
    .even .text_style_12_1 {
      bottom: 30px;
      right: 11%;
      @include input-common;
      text-align: center;
    }
    // 版式13 -------------
    .img_style_13_1 {
      position: absolute;
      top: 42px;
      left: 32%;
      bottom: 90px;
      width: 136%;
      z-index: 500;
      @include bg-common;
    }
    .even .img_style_13_1 {
      left: -68%;
    }
    .odd .text_style_13_1 {
      display: none;
      text-align: center;
    }
    .even .text_style_13_1 {
      bottom: 30px;
      right: 32%;
      @include input-common;
      text-align: center;
    }
    // 版式14 -------------
    .img_style_14_1 {
      position: absolute;
      top: 50px;
      left: 15%;
      bottom: 84px;
      width: 130%;
      z-index: 500;
      @include bg-common;
    }
    .even .img_style_14_1 {
      left: -85%;
    }
    .odd .text_style_14_1 {
      display: none;
    }
    .even .text_style_14_1 {
      top: 50px;
      right: 12%;
      @include input-common;
      width: 120px;
      height: 200px;
    }
    // 版式15 -------------
    .text_style_15_1 {
      top: 80px;
      left: 72px;
      @include input-common;
      width: 182px;
      height: 276px;
      line-height: 20px;
    }
    // 跨页遮挡 -------------
    .style_type_12.even, .style_type_12.odd,
    .style_type_13.even, .style_type_13.odd,
    .style_type_14.even, .style_type_14.odd {
      &:before, &:after {
        content: '';
        position: absolute;
        top: 3px;
        left: 0;
        display: block;
        width: 20px;
        height: 100px;
        background: #fff;
        z-index: 200;
      }
      &:after {
        top: auto;
        bottom: 3px;
      }
    }
    .style_type_12.odd:before, .style_type_12.odd:after,
    .style_type_13.odd:before, .style_type_13.odd:after,
    .style_type_14.odd:before, .style_type_14.odd:after {
      left: auto;
      right: 0;
    }
  }
  .last-page {
    background: url('http://image2.artup.com/static/pc/jiashu/fiarst_page_right.jpg') no-repeat;
    background-size: cover;
  }
}
